<admintpl file="header" />
<style type="text/css">
.pic-list li {
	margin-bottom: 5px;
}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:U('AdminLogistics/index_sub')}">二级物流公司信息</a></li>
			<li class="active"><a href="{:U('AdminLogistics/add_sub',array('id'=>empty($item['id'])?'':$item['id']))}" target="_self">添加二级物流公司</a></li>
		</ul>
		<form action="{:U('AdminLogistics/add_post')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data" onsubmit="return checkform();">
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">

						<tr>
							<th>上级物流公司<span class="form-required">*</span></th>
							<td>
								<select name="manager_id" class="require">
									<option value="">请选择</option>
									<foreach name="logistics_sub_list" item="smitem">
										<option value="{$smitem.id}" <if condition="$item['manager_id'] == $smitem['id']">selected="selected" </if>>{$smitem.logistics_name}</option>
									</foreach>
								</select>
							</td>
						</tr>
							
						<tr>
							<th>物流公司名称<span class="form-required">*</span></th>
							<td><input type="text" name="logistics_name" class="require" id="logistics_name" value="{$item.logistics_name}" style="width: 400px" placeholder="请输入物流公司名称"> </td>
						</tr>

							<!--<if condition="empty($item['id'])">-->
								<!--<tr>-->
							<!--<th>授信总额<span class="form-required">*</span></th>-->
							<!--<td><input type="text" name="credit_price" class="require number" id="credit_price" value="{$item.give_price}" style="width: 400px" placeholder="请输入授信总额"> </td>-->
									<!--</tr>-->
								<!--<tr>-->
							<!--<th>赠送金额<span class="form-required">*</span></th>-->
							<!--<td><input type="text" name="give_price" class="require number" id="give_price" value="{$item.give_price}" style="width: 400px" placeholder="请输入赠送金额"> </td>-->
								<!--</tr>-->
							<!--</if>-->

                    </table>
				</div>

			</div>
			<div class="form-actions">
                <input type="hidden" name="id" value="{$item.id}"/>
				<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
				<a class="btn" href="{:U('AdminLogistics/index_sub')}">返回</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>

	</body>
</html>